package service

import (
	sqlc "bgs/db/sqlc"
	"context"
)

func (s *OrderServiceImp) ListOrderDistributorCommissionPtrsByOrderID(ctx context.Context, q *sqlc.Queries, orderID int64) (orderDistributorCommissionPtrs []*sqlc.OrderDistributorCommission, err error) {
	orderDistributorCommissions, err := q.ListNormalOrderDistributorCommissionsByOrderID(ctx, orderID)
	if err != nil {
		return
	}
	orderDistributorCommissionPtrs = s.MapOrderDistributorCommissionEntityToPtr(orderDistributorCommissions)
	return
}
